package com.esms.dao;

import com.esms.po.Responsibility;
import com.esms.po.ResponsibilityMent;
import com.esms.vo.EmpResponsVO;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface ResponsibilityMapper {

    List<EmpResponsVO> selectDepartmentRespInfo(HashMap<String, Object> map);

    List<EmpResponsVO> selectPositionRespInfo(HashMap<String, Object> map);

    //周纪实审核查看被审核员工的岗位职责
    List<Responsibility> findEmpJobInfo(HashMap<String, Object> map);

    ResponsibilityMent selectGwzzinfoByAccount(HashMap<String, Object> map);

    void updateRContentByid(@Param("id") Integer rId, @Param("content") String content);

    void updateById(Responsibility responsibility);

    String existExcluedId(@Param("depId")Integer depId, @Param("jobId")Integer jobId, @Param("id")Integer id);

    void insertResp(Responsibility responsibility);

    Integer countByType(@Param("type")int i);

    List<Responsibility> ListResp(@Param("depId")Integer depId, @Param("jobId")Integer jobId);

    String exist(@Param("depId")Integer depId, @Param("jobId")Integer jobId);
}
